package com.wq.payunion.oauth2.useroauth2.model.baidu;

import com.wq.payunion.oauth2.useroauth2.model.AbstractOAuthBean;

/**
 * @Author: wangqiang20995
 * @Date:2018 年 9 月 15 日 0015
 * @Description:
 * @Resource:http://developer.baidu.com/wiki/index.php?title=docs/oauth/authorization
 */
public class BaiduCodeBean extends AbstractOAuthBean {
    private String response_type;
    private String client_id;
    private String redirect_uri;
    private String scope;
    private String display;
    private String state;//非必须参数，用于保持请求和回调的状态，授权服务器在回调时（重定向用户浏览器到“redirect_uri”时），会在Query Parameter中原样回传该参数。OAuth2.0标准协议建议，利用state参数来防止CSRF攻击。
    private String force_login;//非必须参数，如传递“force_login=1”，则加载登录页时强制用户输入用户名和口令，不会从cookie中读取百度用户的登陆状态。
    private String confirm_login;//非必须参数，如传递“confirm_login=1”且百度用户已处于登陆状态，会提示是否使用已当前登陆用户对应用授权。
    private String login_type;

    @Override
    public String toString() {
        return "BaiduCodeBean{" +
                "response_type='" + response_type + '\'' +
                ", client_id='" + client_id + '\'' +
                ", redirect_uri='" + redirect_uri + '\'' +
                ", scope='" + scope + '\'' +
                ", display='" + display + '\'' +
                ", state='" + state + '\'' +
                ", force_login='" + force_login + '\'' +
                ", confirm_login='" + confirm_login + '\'' +
                ", login_type='" + login_type + '\'' +
                "} " + super.toString();
    }

    public String getResponse_type() {
        return response_type;
    }

    public void setResponse_type(String response_type) {
        this.response_type = response_type;
    }

    public String getClient_id() {
        return client_id;
    }

    public void setClient_id(String client_id) {
        this.client_id = client_id;
    }

    public String getRedirect_uri() {
        return redirect_uri;
    }

    public void setRedirect_uri(String redirect_uri) {
        this.redirect_uri = redirect_uri;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public String getDisplay() {
        return display;
    }

    public void setDisplay(String display) {
        this.display = display;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getForce_login() {
        return force_login;
    }

    public void setForce_login(String force_login) {
        this.force_login = force_login;
    }

    public String getConfirm_login() {
        return confirm_login;
    }

    public void setConfirm_login(String confirm_login) {
        this.confirm_login = confirm_login;
    }

    public String getLogin_type() {
        return login_type;
    }

    public void setLogin_type(String login_type) {
        this.login_type = login_type;
    }
}
